#ifndef STYLEITEMEVENT_H
#define STYLEITEMEVENT_H
#include <QEvent>
#include "hccustomdata.h"

//const int CustomEventBaseID = QEvent::User;
const int styleItemEventType = QEvent::registerEventType();

class StyleItemEvent : public QEvent
{
public:
    StyleItemEvent(HCCustomData data, int styleNo);

private:
    HCCustomData argData;
    int argStyleNo;
//    QEvent::Type styleItemEventType;

//    QEvent::Type getType()
//    {
//        if (styleItemEventType == QEvent::None)
//        {
//            int generatedType = QEvent::registerEventType();
//            styleItemEventType = static_cast<QEvent::Type>(generatedType);
//        }

//        return styleItemEventType;
//    }
};

//QEvent::Type StyleItemEvent::styleItemEventType = QEvent::None;

#endif // STYLEITEMEVENT_H
